import http from '../../utils/axios'
//添加小表单
export function formAdd(query:any) {
  return http.request({
    url: '/form/add',
    method: 'post',
    data: query
  })
}
//查询小表单详情
export function formGet(query:any) {
  return http.request({
    url: '/form/get',
    method: 'post',
    data: query
  })
}
//删除小表单
export function formDel(query:any) {
  return http.request({
    url: '/form/del',
    method: 'post',
    data: query
  })
}
//编辑小表单
export function formMod(query:any) {
  return http.request({
    url: '/form/mod',
    method: 'post',
    data: query
  })
}
//删除流程
export function flowDel(query:any) {
  return http.request({
    url: '/flow/del',
    method: 'post',
    data: query
  })
}
//添加流程
export function flowAdd(query:any) {
  return http.request({
    url: '/flow/def',
    method: 'post',
    data: query
  })
}
//编辑流程
export function flowAlter(query:any) {
  return http.request({
    url: '/flow/alter',
    method: 'post',
    data: query
  })
}
//删除节点
export function nodeDel(query:any) {
  return http.request({
    url: '/node/del',
    method: 'post',
    data: query
  })
}
//新增大表单
export function unitFormAdd(query:any) {
  return http.request({
    url: '/unit-form/add',
    method: 'post',
    data: query
  })
}
//编辑大表单
export function unitFormMod(query:any) {
  return http.request({
    url: '/unit-form/mod',
    method: 'post',
    data: query
  })
}
//删除大表单
export function unitFormDel(query:any) {
  return http.request({
    url: '/unit-form/del',
    method: 'post',
    data: query
  })
}
//获取所有小表单
export function formList(query:any) {
  return http.request({
    url: '/form/list',
    method: 'post',
    data: query
  })
}
//获取大表单详情
export function unitFormGet(query:any) {
  return http.request({
    url: '/unit-form/get',
    method: 'post',
    data: query
  })
}
//设置小表单的启用跟禁用
export function unitFormSet(query:any) {
  return http.request({
    url: '/unit-form/set',
    method: 'post',
    data: query
  })
}
//获取所有机构
export function cooperativeAgencyListAll(query:any) {
  return http.request({
    url: '/cooperative_agency/listAll',
    method: 'post',
    data: query
  })
}
//复制流程
export function flowCopy(query:any) {
  return http.request({
    url: '/flow/copy',
    method: 'post',
    data: query
  })
}
//获取流程详情
export function flowGet(query:any) {
  return http.request({
    url: '/flow/get',
    method: 'post',
    data: query
  })
}
//获取所有文件模版
export function fileListAll(query:any) {
  return http.request({
    url: '/file-template/listAll',
    method: 'post',
    data: query
  })
}
//获取所有员工
export function emplLstAll(query:any) {
  return http.request({
    url: '/emp/listAll',
    method: 'post',
    data: query
  })
}
//安排评审会的人员选择
export function empDeliberative(query:any) {
  return http.request({
    url: 'emp/deliberative',
    method: 'post',
    data: query
  })
}
//设置表单是否有清楚按钮
export function formSetReset(query:any) {
  return http.request({
    url: 'form/setReset',
    method: 'post',
    data: query
  })
}
//获取节点标识状态
export function listMasterStatus(query:any) {
  return http.request({
    url: '/constant/listMasterStatus',
    method: 'post',
    data: query
  })
}
//获取节点标识状态
export function listHandlerOption(query:any) {
  return http.request({
    url: '/constant/listHandlerOption',
    method: 'post',
    data: query
  })
}
//获取字段列表
export function fieldList(query:any) {
  return http.request({
    url: '/form/fieldList',
    method: 'post',
    data: query
  })
}
//获取通知类型
export function msgTemplate(query:any) {
  return http.request({
    url: '/msg_template/listByPage',
    method: 'post',
    data: query
  })
}
//获取通知类型
export function getCheckerInfo(query:any) {
  return http.request({
    url: '/run-task/getCheckerInfo',
    method: 'post',
    data: query
  })
}

